@import '../../style/_variables.less';

.mooli-steps {
  width: 100%;
  box-sizing: border-box;
  &--horizontal {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
  }
  &--vertical {
    .mooli-step {
      display: flex;
      align-items: stretch;
      &--indicator {
        flex: none;
        width: 24px;
        height: auto;
        margin-right: 0;
        &::after {
          left: 50%;
          top: calc(17px*1.5/2);
          width: 1px;
          transform: translateX(-50%);
          height: 100%;
        }
      }
      &--icon {
        top: calc(14px * 1.5 / 2);
        left: 50%;
        transform: translate(-50%, -50%);
      }
      &--process &--indicator::before {
        left: 50%;
        top: 16px;
        width: 1px;
        transform: scale(0.5) translateX(-50%);
        transform-origin: 0 0;
        height: calc(100% - 18px);
        background-color: #ffc308;
        z-index: 2;
      }
      &--content {
        flex: auto;
        padding-bottom: 24px;
        padding-top: 0;
        text-align: left;
      }
      &--content &--description {
        font-size: 14px;
        color: #acacac;
        margin-top: 0;
        padding-top: 0;
      }
      &--title {
        font-size: 14px;
        line-height: 1.5;
        padding-bottom: 0;
      }
    }
  }
}
.mooli-step {
  flex: 1;
  &--indicator {
    width: 100%;
    height: 24px;
    position: relative;
    &::after {
      content: '';
      z-index: 0;
      display: block;
      background-color: @steps-wait-background-color;
      position: absolute;
      left: 50%;
      top: 50%;
      height: 1px;
      transform: scale(0.5) translateY(-50%);
      transform-origin: 0 0;
      width: 200%;
      z-index: 1;
    }
  }
  &--icon {
    position: absolute;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: #e5e5e5;
  }
  &--icon-dot {
    overflow: hidden;
    display: block;
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 4px;
  }
  &--content {
    text-align: center;
    font-size: 10px;
    padding: 2px 8px 0;
  }
  &--title {
    color: @steps-title-color;
    font-size: 10px;
  }
  &--description {
    margin-top: 4px;
    color: @steps-weak-color;
  }
  &--finish &--icon {
    color: @steps-finish-background-color;
  }
  &--finish &--indicator::after {
    background-color: @steps-finish-background-color;
  }
  &--process &--icon, &--process &--title {
    color: @steps-finish-background-color;
  }
  &--wait &--title {
    color: @steps-weak-color;
  }
  &--error &--icon, &--error &--title {
    color: @steps-error-background-color;
  }
  &:last-child &--indicator::after {
    display: none;
  }
}
